import { DiscloseService } from '@service/disclose.service';
import { Component, Input, OnInit } from '@angular/core';

@Component({
	selector: 'app-disclose-list-detail',
	templateUrl: './disclose-list-detail.component.html',
	styleUrls: ['./disclose-list-detail.component.less']
})
export class DiscloseListDetailComponent  implements OnInit {
	@Input() item: any;
	data = [];
	total = 0;
	nzLoading = false;
	constructor(
		private discloseService: DiscloseService
	) { }

	ngOnInit() {
		if (this.item?.id){
			this.init();
		}
	}
	async init() {
		const result = await this.discloseService.getDiscloseTreatList(this.item?.id);
		this.data = result.data;
	}

}
